$(function(){
    window.onresize=function(){
        let shuaxin = window.location.href;
        $("#zoe").hide();
        // 当页面缩小是刷新页面
        window.location.href = shuaxin
    }
    let state=0;
    let eye=$('#eye');
    let small=$('#zoe');
    eye.click(
        function(){
            if(state==0){
                small.css('display','block')
                eye.attr('src','./img/off.png')
                state=1
            }else{
                small.css('display','none')
                eye.attr('src','./img/more.png')
                state=0;
            }
        }
    )
//   获取当前的视图宽度
 let maxWidth= $(window).width(); 
 console.log(maxWidth);
 if(maxWidth<=1024){
    $('high-end').removeClass('animate__animated wow animate__fadeInDown')
 }
})
